package com.atguigu.gulimall.order.feign;

import com.atguigu.gulimall.order.feign.fallback.CartFeignServiceFallback;
import com.atguigu.gulimall.order.vo.OrderItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @create: 2024/9/11
 * @author: gyhe10
 * @description: 远程调用 cart 服务的 feign 接口
 **/

@FeignClient(value = "gulimall-cart", fallback = CartFeignServiceFallback.class)
public interface CartFeignService {

    @GetMapping("/currentUserCheckedItems")
    List<OrderItemVo> getCurrentUserCheckedItems();
}
